package com.lsh.airticket.service;

import com.github.pagehelper.PageInfo;
import com.lsh.airticket.dto.RequestFlight;
import com.lsh.airticket.dto.SearchFlight;
import com.lsh.airticket.dto.ShowFlight;
import com.lsh.airticket.entity.Flight;

import java.util.List;

/**
 * @author lsh
 * @date 2021/2/15
 **/
public interface FlightService {

    List<ShowFlight> findFlight(SearchFlight searchFlight);


    //分页查找
    PageInfo<Flight> findFlightPage();

    //插入一条数据
    int insertFlight(RequestFlight requestFlight);

    // 删除一条数据
    int deleteFlightById(String flightId);

    //根据FlightId 查找 航班信息
    Flight findFlightById(String flightId);

    // 更新一条数据
    int updateFlight(RequestFlight requestFlight);
}
